package com.qiang;

import java.io.File;
import java.io.IOException;

public class Test17 {
    public static void main(String[] args) throws IOException {
        File f1 = new File("D:\\itcast\\java.txt");
        System.out.println(f1.createNewFile());
        //System.out.println(f1);
        System.out.println("=======");

        File f2 = new File("D:\\itcast\\JavaSE");
        System.out.println(f2.mkdir());
        System.out.println("=======");

        File f3 = new File("D:\\itcast\\a\\s\\d\\f");
        System.out.println(f3.mkdirs());

        File f4 = new File("D:\\a\\d\\g\\r\\w");
        System.out.println(f4.mkdirs());

        /*File f2 = new File("D:\\ADB");
        File f3 = new File(f2,"\\java.txt");

        File f4 = new File("D:\\ADB","\\Java.txt");*/
    }
}
